home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-08-23 | 1.6 KB | 70 lines |
- #
- # makefile for user-contributed/lbl/x11/tuner
- #
- # Note: 3 binaries, tuner, ftuner, and getx are created from the same source
- # files. ftuner uses the -DDIRECT cpp directive for Fast display
- #
-
- LOCALINC=-I$(CCS_ROOT)/include
- CPPFLAGS_tuner = $(LOCALINC) -DX_WINDOW_DEP -DHIPS_IMAGE -DCOMMON_TOOL
- CPPFLAGS_ftuner = $(CPPFLAGS_tuner) -DDIRECT
- CPPFLAGS_getx = $(CPPFLAGS_ftuner) -DC_TUNER
-
- PUBLIC = public.o
- PANEL_LIB = -L../lib -lpanel -lccs -lrle -lX11 -ltiff $(LIBRARY) $(OTHERLIBS)
- # for writing RLE & HIPS
- LIBRARIES = $(PUBLIC) $(LDFLAGS) -lscs4 $(PANEL_LIB)
- # for writing other image tpye, such as sun-raster file
- LIBRARIE6 = $(PUBLIC) $(LDFLAGS) -lscs6 $(PANEL_LIB) -lpixrect -ljpeg
-
- SOURCES = update.c tuner.c
- Objects = update.o tuner.o
- OBJECTS = fupdate.o ftuner.o
- GETOBJS = cupdate.o colors.o getx11.o get_pic.o
-
- PGMS = tuner.out ftuner.out
-
- install: $(PUBLIC) $(Objects) tuner.out $(OBJECTS) ftuner.out getx.out
-
- tuner.o: info_any.c
- ftuner.o: info_any.c
- colors.o: info_any.c
-
- clean: clean-pgm
- clean-all: clean_all
-
- man:
-
- doc:
-
- pristine: pristine-pgm
-
- $(PUBLIC):
- $(COMPILEc) $< $(CPPFLAGS_tuner)
-
- $(Objects):
- $(COMPILEc) $< $(CPPFLAGS_tuner)
-
- $(OBJECTS):
- $(COMPILEc) $(CPPFLAGS_ftuner) $<
-
- $(GETOBJS):
- $(COMPILEc) $(CPPFLAGS_getx) $<
-
- tuner.out: $(Objects)
- $(LINKc) tuner $(Objects) $(CFLAGS) $(LIBRARIES) $(LDFLAGS2)
- mv tuner $(DESTDIR)
- @touch $@
-
- ftuner.out: $(OBJECTS)
- $(LINKc) ftuner $(OBJECTS) $(CFLAGS) $(LIBRARIE6) $(LDFLAGS2)
- mv ftuner $(DESTDIR)
- @touch $@
-
- getx.out: $(GETOBJS)
- $(CC) -o getx $(CFLAGS) $(GETOBJS) $(LIBRARIE6)
- mv getx $(DESTDIR)
- @touch $@
-
- FRC:
-